﻿namespace Digitalmes.Application.Sys.Orgs;

/// <summary>
/// 机构 DTO 对象。
/// </summary>
public sealed class SysOrgDto : Dto
{
    /// <summary>
    /// 父 Id，0 表示为最顶层。
    /// </summary>
    public long ParentId { get; set; }

    /// <summary>
    /// 机构名称 
    /// </summary>
    [NotNull]
    public string? Name { get; set; }

    /// <summary>
    /// 机构代码
    /// </summary>
    public string? Code { get; set; }

    /// <summary>
    /// 机构负责人
    /// </summary>
    public string? Principal { get; set; }

    /// <summary>
    /// 手机
    /// </summary>
    public string? Phone { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    public string? Email { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 启用状态（0->停用，1->启用）
    /// </summary>
    public EnabledStatusEnum Status { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }

    public string? LastModifiedBy { get; set; }

    public DateTime? LastModifiedTime { get; set; }
}
